/*
** my_factorielle_rec.c for my_factorielle_rec in /home/nadali_t//afs/rendu/piscine/Jour_05
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Fri Oct  5 10:57:54 2012 thomas nadalie
** Last update Mon Oct  8 18:26:48 2012 thomas nadalie
*/

int	my_factorielle_rec(int nb)
{
  int	a;

  a = nb;
  if (a < 0 || a > 12)
    return (0);
  else if (a == 0)
    return (1);
  else
    return (a * my_factorielle_rec(a - 1));
}
